package Java7_Concurrency_Cookbook.thread_executor_framework.scheduled_thread_pool_executor;

import java.util.Date;
import java.util.concurrent.Callable;

/**
 * @author lixiangke
 * @date 2017/11/18
 */
public class Task implements Callable<String> {
    private String name;

    public Task(String name) {
        this.name = name;
    }

    @Override
    public String call() {
        System.out.printf("%s: Starting at : %s\n", name, new Date());
        return "Hello World";
    }
}
